package com.efesco.oa.announce;

import com.bstek.dorado.data.*;
import com.bstek.dorado.data.db.SqlDataset;
import com.bstek.dorado.common.*;
import com.efesco.common.CommUtil;

/**
 * announce_dataset_announce_listListener
 */
public class announce_dataset_announce_listListener extends AbstractDatasetListener {
  public boolean beforeLoadData(Dataset dataset)
     throws Exception {
	  SqlDataset ds = (SqlDataset) dataset;
	  String sql="select INFO_ANNOUNCE_ID,ANNOUNCE_TITLE,MSG_CLASS,SEND_DATE,OVERDUE_DATE from s_info_announce where is_delete is null and SEND_MAN="+CommUtil.getForEmpId();
	  sql += CommUtil.setConditionSQL(ds);
	  ds.setSql(sql);
    return true;
  }

}
